package com.duoketech.service.pay;

import com.duoketech.model.roomorder.RoomOrder;

public class RoomOrderPayCallBack implements IPayCallBack{
    @Override
    public void doPayCallBack(int orderId) {
        RoomOrder order = RoomOrder.dao.findById(orderId);
        if(order!=null&&order.getInt(RoomOrder.STATUS)==RoomOrder.STATUS_UNPAY){
            order.set(RoomOrder.STATUS,RoomOrder.STATUS_PAID);
            order.update();
        }
    }
}
